#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
	int *items;
	int nr_items, k;

	nr_items = argc - 1;
	if (nr_items < 1)
	{
		printf("Usage: binaryse <item1> <item2> ... <itemN>\n");
		exit(-1);
	}

	items = malloc(sizeof(int) * nr_items);
	for (k=0; k<nr_items; k++)
	{
		*(items + k) = atoi(argv[k+1]);
	}

	for (k=0; k<nr_items; k++)
	{
		printf("items[%d]=%d\n", k, items[k]);
	}

	return 0;
}

